import pygame
from BaseBullet import *
'''子弹'''
class Bullet(BaseBullet):

  def __init__(self, screen, plane):
    super().__init__(screen, plane.x + 41, plane.y - 20, 'src/assets/images/bullet.png')
    # self.x = plane.x + 41
    # self.y = plane.y - 20
    # self.screen = screen
    # self.plane = plane
    # self.image = pygame.image.load('src/assets/images/bullet.png')

  # def display(self):
  #   self.screen.blit(self.image, (self.x, self.y))

  def move(self):
    self.y -= 10

  def judge(self):
    return self.y < 0
